#ifndef MRR_LOGGER_H_
#define MRR_LOGGER_H_

enum {MRR_TRACE = 6, MRR_DEBUG = 5, MRR_INFO = 4,
	MRR_WARN = 3, MRR_ERROR = 2, MRR_FATAL = 1
};

#define MRR_ERRNO_SUCCESS (0)
#define MRR_ERRNO_OUT_OF_MEMORY (1)


#define mrr_trace(msg, ...) mrr_log_write(MRR_TRACE, __FILE__, __LINE__, msg, __VA_ARGS__)

#define mrr_debug(msg, ...) mrr_log_write(MRR_DEBUG, __FILE__, __LINE__, msg, __VA_ARGS__)

#define mrr_warn(msg, ...) mrr_log_write(MRR_WARN, __FILE__, __LINE__, msg, __VA_ARGS__)

#define mrr_fatal(...) mrr_err_fatal(__FILE__, __LINE__, __VA_ARGS__)

#define mrr_sys_errno() mrr_log_syserrno(__FILE__, __LINE__) 

#endif /*LOGGER_H_*/
